home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / hardware / vrserver / vrstest.asm < prev   
Encoding:
Assembly Source File  |  1994-03-24  |  783 b   |  53 lines

  1. ;*      VRSTEST.ASM
  2. ;*
  3. ;* Some VRServer test routines
  4. ;*
  5. ;* PUBLIC DOMAIN by Petteri Kangaslampi 1994
  6. ;*
  7.  
  8.  
  9. IDEAL
  10. MODEL   LARGE,C
  11.  
  12.  
  13.  
  14.  
  15.  
  16. CODESEG
  17.  
  18.  
  19. PUBLIC    PreVR, VR
  20.  
  21.  
  22. PROC    PreVR   FAR                     ; routine that is to be called
  23.                                         ; _before_ the retrace
  24.         mov     dx,03DAh
  25.         in      al,dx
  26.     mov    dx,03C0h
  27.     mov    al,31h
  28.     out    dx,al            ; set border color to 15 (white)
  29.     mov    al,15
  30.     out    dx,al
  31.  
  32.     ret
  33. ENDP
  34.  
  35.  
  36.  
  37. PROC    VR      FAR                     ; routine to be called _in_ the
  38.                                         ; retrace
  39.         mov     dx,03DAh
  40.         in      al,dx
  41.     mov    dx,03C0h
  42.     mov    al,31h
  43.     out    dx,al            ; set border color to 0 (black)
  44.     mov    al,0
  45.     out    dx,al
  46.  
  47.     ret
  48. ENDP
  49.  
  50.  
  51.  
  52. END
  53.